//引入请求库
import http from "@/utils/http/http2.ts";

/**
 * 查询客户
 * @param {*} data
 * @returns
 */
export function queryForwarder(data) {
  return http.post("/forwarder/list", data);
}
/**
 * 保存货代
 * @param {*} data
 * @returns
 */
export function saveForwarder(data) {
  return http.post("/forwarder", data);
}
/**
 * 更新货代
 * @param {*} data
 * @returns
 */
export function updataForwarder(data) {
  return http.put("/forwarder", data);
}
export function queryUser(id) {
  return http.get(`/forwarder/${id}`);
}
